import React, {  PureComponent } from 'react'

export class Recommad extends PureComponent {
    // shouldComponentUpdate(nextProps) {
    //     if(this.props.counter !== nextProps.counter){
    //         return true
    //     }
    //     return false
    // }
    render() {
        console.log('Recommad render');

        return (
            <div>
                Recommad
                <p>{this.props.counter}</p>
            </div>
        )
    }
}

export default Recommad